package cn.kbyue.swagger3.config;

import org.springframework.context.annotation.Configuration;

/**
 * zuul
 *
 * @author xl
 * @date 2020/8/26 23:06
 */
@Configuration
public class ZuulConfig {

    // 自定义 serviceId 和路由之间的相互映射
//    user-api  -->   user/api
//    @Bean
//    public PatternServiceRouteMapper serviceRouteMapper() {
//        return new PatternServiceRouteMapper(
//                "(?<project>^.+)-(?<subProject>.+$)",
//                "${project}/${subProject}");
//    }

}
